# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=mce-dev
pkgver=1.28.1
pkgrel=0
pkgdesc="Mers mce-dev"
url="https://git.sailfishos.org/mer-core/mce-dev"
arch="noarch"
license="LGPL-2.1-or-later"
makedepends="qt5-qtbase-dev doxygen"
subpackages="$pkgname-doc"
source="https://git.sailfishos.org/mer-core/mce-dev/-/archive/$pkgver/mce-dev-$pkgver.tar.gz"
options="!check" # No test suite available

build() {
	make
	make doc
}

package() {
	DESTDIR="$pkgdir" make install
}

doc() {
	install -dm755 "$subpkgdir"/usr/share/doc/$pkgname
	mv "$builddir"/doc/html "$subpkgdir"/usr/share/doc/$pkgname/
}

sha512sums="82a0c7c5479e9cb959d36274199da64818af007bdf328e942a3cd206c6d77af1c26d0e6dfd67776b6fd2cf4c4bc2c3bfdb17218dd9de9be888e7f57b0f7b9d15  mce-dev-1.28.1.tar.gz"
